/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


.attachment_drag_highlight {
  background-color: #E0FFE0;
}

.progress-color {
  background: #439CCD;
  background: linear-gradient(top,#57aedf,#439CCD 50%,#3B95C6 51%,#237faf);
  background: -o-linear-gradient(top,#57aedf,#439CCD 50%,#3B95C6 51%,#237faf);
  background: -moz-linear-gradient(top,#57aedf,#439CCD 50%,#3B95C6 51%,#237faf);
  background: -webkit-linear-gradient(top,#57aedf,#439CCD 50%,#3B95C6 51%,#237faf);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#57aedf', EndColorStr='#237faf')";
}

#editMessagePageFooter
{
    @column-padding-left: @message-spliter-width * 3 - 2;

    .attachments_list
    {
        .row
        {
            .file_info
            {
                width: @message-head-row-height * 15;

                .file-name
                {
                    max-width: @message-head-row-height * 12;
                }

                .fullSizeLabel
                {
                    max-width: @message-head-row-height * 3;
                }

            }

            .delete_icon
            {
                width: 16px;
                padding-left: @column-padding-left;

                .delete_attachment
                {
                    background: url("@{base-icon-sprite-url}") no-repeat;
                    background-position: -20px 0;
                    width: 16px;
                    height: 16px;
                    cursor: pointer;
                }
            }

            .attachment-progress
            {
                width: 100px;
                display: inline-block;

                .fu-progress-cell
                {
                    text-align: center;

                    .upload-progress
                    {
                        background-color: @border-color-panel;
                        color: @body-color;
                        width: 100px;
                        position: relative;
                        height: 15px;
                        overflow: hidden;

                        .progress-slider
                        {
                            left: 0;
                            position: absolute;
                            width: 0;
                            height: 14px;
                        }

                        .progress-label
                        {
                            left: 0;
                            font-size: 10px;
                            position: absolute;
                            width: 100%;
                            top: -3px;
                        }
                    }
                }
            }

            .load_result 
            {
                padding-left: @column-padding-left;

                .file-load-result
                {
                    max-width: 95%;
                    display: inline-block;
                    float: left;
                }

                .attach-filelink-btn {
                    border-bottom: 1px dotted;
                    display: inline-block;
                    margin-left: 5px;
                    cursor: pointer;
                }
            }

            &:hover,
            &.selected
            {
                .delete_attachment
                {
                    background-position: -20px -20px !important;
                }
            }
        }
    }
}

.uploaded-text
{
    color: #a2a2a2 !important;
}

#attachments_clear_btn {
    display: none;
}